const db = require("./db.js");

const adminSchema = new db.Schema({
    adminId:{type:String},
    username:{type:String},
    password:{type:String},
    power:{type:Number},
    lastTime:{type:Number}
})

// 根据元对象，创建集合
const admin = db.model("admin", adminSchema);

// 将集合对象暴露出去，准备操作数据
module.exports = admin;
